﻿using NDF.Framework;
using NDF.Web.Optimization;
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Optimization;

namespace NDF.WebClient
{
    public class BundleConfig
    {
        // 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add("~/bundles/jquery-easyui",

                "~/Content/jqext/jquery/jquery-1.11.1.js",
                "~/Content/jqext/jquery.jdirk.js",

                "~/Content/jqext/jquery-easyui-theme/default/easyui.css",
                "~/Content/jqext/jquery-easyui-theme/icon.css",

                "~/Content/jqext/jquery-easyui-1.3.6/jquery.easyui.min.js",
                "~/Content/jqext/jquery-easyui-1.3.6/locale/easyui-lang-zh_CN.js",

                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.css",

                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.progressbar.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.slider.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.linkbutton.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.form.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.validatebox.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.combo.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.combobox.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.menu.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.serachbox.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.panel.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.window.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.dialog.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.layout.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.tree.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.datagrid.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.treegrid.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.combotree.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.combogrid.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.tabs.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.theme.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.icons.js",
                "~/Content/jqext/jeasyui-extensions/jeasyui.extensions.gridselector.js",

                "~/Content/jqext/icons/icon-all.css",
                "~/Content/jqext/icons/jeasyui.icons.all.js",

                "~/Content/jqext/plugins/ueditor/ueditor1_4_3-utf8-net/themes/default/css/ueditor.css",
                "~/Content/jqext/plugins/ueditor/ueditor1_4_3-utf8-net/ueditor.config.js",
                "~/Content/jqext/plugins/ueditor/ueditor1_4_3-utf8-net/ueditor.all.js",
                "~/Content/jqext/plugins/ueditor/ueditor1_4_3-utf8-net/lang/zh-cn/zh-cn.js",

                new BundlePath { KeepPath = true, Type = BundleType.JavaScript, VirtualPath = "~/Content/jqext/plugins/My97DatePicker/WdatePicker.js" },

                "~/Content/jqext/plugins/codemirror-4.3/lib/codemirror.css",
                "~/Content/jqext/plugins/codemirror-4.3/lib/codemirror.js",
                "~/Content/jqext/plugins/codemirror-4.3/mode/xml/xml.js",
                "~/Content/jqext/plugins/codemirror-4.3/mode/javascript/javascript.js",
                "~/Content/jqext/plugins/codemirror-4.3/mode/vbscript/vbscript.js",
                "~/Content/jqext/plugins/codemirror-4.3/mode/css/css.js",
                "~/Content/jqext/codemirror-4.3/mode/htmlmixed/htmlmixed.js",

                "~/Content/jqext/plugins/uploadify/uploadify.css",
                "~/Content/jqext/plugins/uploadify/jquery.uploadify.js",

                "~/Content/jqext/jeasyui-extensions/jquery.toolbar.js",
                "~/Content/jqext/jeasyui-extensions/jquery.comboicons.js",
                "~/Content/jqext/jeasyui-extensions/jquery.comboselector.js",
                "~/Content/jqext/jeasyui-extensions/jquery.portal.js",
                "~/Content/jqext/jeasyui-extensions/jquery.ueditor.js",
                "~/Content/jqext/jeasyui-extensions/jquery.my97.js",
                "~/Content/jqext/jeasyui-extensions/jquery.codemirror.js",
                "~/Content/jqext/jeasyui-extensions/jquery.euploadify.js"
                );




            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/libs/modernizr-*"));


            BundleTable.EnableOptimizations = SystemEnvironment.EnableOptimizations;
        }
    }
}
